package com.weiwu.weiwustore.pojo;

import com.weiwu.weiwustore.utils.DateUtil;
import lombok.Data;

import java.util.Date;

/**
 * 前端仓库列表封装类
 */
@Data
public class StoreListVo {
    private Integer id;
    private String sname;
    private String address;
    private String introduce;
    private String createtime;
    private String updatetime;
    public StoreListVo(){}
    public StoreListVo(Integer id,String sname, String address, String introduce, Date createtime,Date updatetime){
        this.id=id;
        this.sname=sname;
        this.address=address;
        this.introduce=introduce;
        this.createtime= DateUtil.getSimpleTime(createtime);
        this.updatetime=DateUtil.getSimpleTime(updatetime);
    }
}
